package com.molin.conllectionTest.myList;

import java.util.ArrayList;
import java.util.List;

public class Demo1 {
    public static void main(String[] args) {
        List<String> list= new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");
//        addList(list);
//        removeList(list);
//        setList(list);
    }

    public static void setList(List<String> list) {
        list.set(0,"abcei");
        System.out.println(list);
    }

    public static void removeList(List<String> list) {
        list.remove(0);
        System.out.println(list);
    }


    public static void addList(List<String> list) {
        list.add(0,"qqq");
        System.out.println(list
        );
    }
}
